module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://192.168.0.4:8060',  // 确保这里是8060端口
        headers: {
          Host: '192.168.0.4:8060'  // 添加Host头确保正确转发
        },
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}
